package com.cdd.common.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@TableName("agent_user")
@Data
public class AgentUser implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer areaId;
    private Integer userId;
    private String username;
    @JsonIgnore
    private String password;
    private Double rechargeRate;//充值手续费比例
    private Double withdrawRate;//提现手续费比例
    private BigDecimal money;//余额


    @TableField(exist = false)
    private String areaName;
    @TableField(exist = false)
    private Integer cityId;
    @TableField(exist = false)
    private String cityName;
    @TableField(exist = false)
    private Integer provinceId;
    @TableField(exist = false)
    private String provinceName;
}
